﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using AwesomeTanks.Sources.Media;
using AwesomeTanks.Sources.Tools;

namespace AwesomeTanks.Sources.GameElements.ShootElements
{
    public class GatlingShoot : Shoot
    {
        #region field

        public const int BASE_DAMAGE = 1;
        public const int RELOADING_TIME_MS = 1000;
        public const float SPEED = 1.5f;

        #endregion

        #region constructor

        public GatlingShoot(Vector2 position, Vector2 speed, Player shooter)
            : base(position, speed, Art.SpriteSheet, Art.GatlingShootSourceRectangle, BASE_DAMAGE, shooter)
        {
            this.Rotation = speed.ToAngle();
            this.Speed *= SPEED;
        }

        #endregion

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);
        }
    }
}
